<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>四川油气田钻井系统工程预算定额(试行)</title>
<style type="text/css">
body{margin:0;padding:0;font-size:12px;}
.item{margin-left:20px;padding:10px;}
table{border-collapse:collapse;}
td{text-align:center;padding:5px;font-size:12px;}
</style>
</head>
<body>
<div class="item"><xsl:value-of select="volume/@index"/>.<xsl:value-of select="volume/@name"/>
	<div class="item"><xsl:value-of select="volume/chapter/@index"/>.<xsl:value-of select="volume/chapter/@name"/>
		<div class="item"><xsl:value-of select="volume/chapter/section/@index"/>.<xsl:value-of select="volume/chapter/section/@name"/>
			<xsl:for-each select="volume/chapter/section/work">
				<div class="item">
				<xsl:value-of select="@index"/>.<xsl:value-of select="@name"/>
					<table border="1" bordercolor="black" cellpadding="0" cellspacing="0">
						<tr><td>作业井深</td>
						<xsl:for-each select="item">
							<td><xsl:value-of select="@name"/></td>
						</xsl:for-each>
						</tr>
						<tr><td>作业工时</td>
						<xsl:for-each select="item">
							<td><xsl:value-of select="workinghour"/></td>
						</xsl:for-each>
						</tr>
					</table>
				</div>
			</xsl:for-each>
		</div>
	</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>